GoogleBackgroundRemover

ML Kit segmentation implementation for background removal.

Constructors

Link copied to clipboard
constructor()

Functions

Link copied to clipboard
open override fun EditorScope.initialize()

Performs no setup because ML Kit clients are created when processing images.

Link copied to clipboard
open suspend override fun EditorScope.processImage(bitmap: Bitmap): BackgroundRemovalMask

Runs ML Kit selfie segmentation for bitmap and returns its foreground mask.